package org.example.demo31;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/*
https://blog.csdn.net/CSU_hjh/article/details/119139346
 */
@SpringBootApplication
public class WebsocketexampleApplication1 {
    public static void main(String[] args) {
        SpringApplication.run(WebsocketexampleApplication1.class, args);
        System.out.println("hello WebsocketexampleApplication ");
    }

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
